<HTML>
<HEAD>
<TITLE>[Chapter 23] java.awt.peer Reference</TITLE>
<META NAME="author" CONTENT="John Zukowski">
<META NAME="date" CONTENT="Thu Jul 31 15:27:59 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java AWT">
<META NAME="title" CONTENT="Java AWT">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">
<script language='JavaScript'>
<!--
if (location.replace) {
 location.replace ('ch23_js.htm');
}
// -->
</script>

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java AWT" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch22_14.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 23</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch23_02.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<H1 CLASS=chapter><A CLASS="TITLE" NAME="JAWT-CH-23">23. java.awt.peer Reference</A></H1>

<DIV CLASS=htmltoc>

<p>
<b>Contents:</b><br>
<a href='ch23_02.htm'>CanvasPeer</a><br>
<a href='ch23_03.htm'>CheckboxMenuItemPeer</a><br>
<a href='ch23_04.htm'>CheckboxPeer</a><br>
<a href='ch23_05.htm'>ChoicePeer</a><br>
<a href='ch23_06.htm'>ComponentPeer</a><br>
<a href='ch23_07.htm'>ContainerPeer</a><br>
<a href='ch23_08.htm'>DialogPeer</a><br>
<a href='ch23_09.htm'>FileDialogPeer</a><br>
<a href='ch23_10.htm'>FontPeer <img src="gifs/bstar.gif" alt="(New)" border=0></a><br>
<a href='ch23_11.htm'>FramePeer</a><br>
<a href='ch23_12.htm'>LabelPeer</a><br>
<a href='ch23_13.htm'>LightweightPeer <img src="gifs/bstar.gif" alt="(New)" border=0></a><br>
<a href='ch23_14.htm'>ListPeer</a><br>
<a href='ch23_15.htm'>MenuBarPeer</a><br>
<a href='ch23_16.htm'>MenuComponentPeer</a><br>
<a href='ch23_17.htm'>MenuItemPeer</a><br>
<a href='ch23_18.htm'>MenuPeer</a><br>
<a href='ch23_19.htm'>PanelPeer</a><br>
<a href='ch23_20.htm'>PopupMenuPeer <img src="gifs/bstar.gif" alt="(New)" border=0></a><br>
<a href='ch23_21.htm'>ScrollbarPeer</a><br>
<a href='ch23_22.htm'>ScrollPanePeer <img src="gifs/bstar.gif" alt="(New)" border=0></a><br>
<a href='ch23_23.htm'>TextAreaPeer</a><br>
<a href='ch23_24.htm'>TextComponentPeer</a><br>
<a href='ch23_25.htm'>TextFieldPeer</a><br>
<a href='ch23_26.htm'>WindowPeer</a><br>
<p>
<p>
</DIV>

<DIV CLASS=refnamediv>
<H1>ButtonPeer</H1>

<H2>Name</H2>

ButtonPeer

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch23-REFSECT1-AUTOID.1"></A></h2>
</DIV>


<p>
<img align=middle src="./figs/buttonp.gif" alt="[Graphic: Figure from the text]" width=502 height=82 border=0>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch23-REFSECT1-AUTOID.2">Description</A></h2>

<P CLASS=para>
<A NAME="CH23.PEER"></A><tt CLASS=literal>ButtonPeer</tt> is an interface 
that defines the basis for buttons. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch23-REFSECT1-AUTOID.3">Interface Definition</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public abstract interface java.awt.peer.ButtonPeer
extends java.awt.peer.ComponentPeer {
  // Interface Methods
  public abstract void setLabel (String label);
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch23-REFSECT1-AUTOID.4">Interface Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch23-REFSECT2-AUTOID.1">setLabel</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch23-REFSECT3-AUTOID.1">public abstract void setLabel (String label)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>label</I><br>
<DD>

<P CLASS=para>
New text for label 
of button's peer. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the text of the label of button's peer. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch23-REFSECT1-AUTOID.5">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>ComponentPeer</tt>, <tt CLASS=literal>String</tt> 

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch23_26.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top>&nbsp;</td>
<td width=172 align=right valign=top><A HREF="ch23_02.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>WindowPeer</td>
<td width=171 align=center valign=top><a href="index/idx_a.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>&nbsp;</td>
<td width=172 align=right valign=top>CanvasPeer</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
